package com.tcm.core.domain.dto;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


public class DepartmentDTO implements Serializable {

    private Long id;

    /**
     * 分类名称
     */
    @NotNull(message = "科室名称不能为空")
    private String name;

    /**
     * 别名
     */
    @NotNull(message = "科室别名不能为空")
    private String alias;

    /**
     * 父id
     */
    @NotNull(message = "父编号不能为空")
    private Long parentId;

    private Integer sortby;

    private Integer level;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }
}